package com.xinongbest.cloud.mall.practice.zuul.feign;

import com.xinongbest.cloud.mall.practice.user.model.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient("cloud-mall-user")
public interface UserFeignClient {

    @PostMapping("checkAdminRole")
    @ResponseBody
    Boolean checkAdminRole(@RequestBody User user);
}
